package com.example.demo.myTest;


import com.example.demo.util.Generic;

public class GenericTest {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Generic generic = new Generic();
        // 反射获得class对象
        Object object = generic.getObject(Class.forName("com.example.demo.util.Generic"));
    }
}
